import request from '@/utils/request'
// 查询课程表列表
export function listCourseApi(query) {
  return request({
    url: '/edutation/course/list',
    method: 'get',
    params: {
      orderByColumn:'courseId',
      isAsc:'descending',
      ...query
    }
  })
}
// 查询课程表详细
export function getCourseApi(courseId) {
  return request({
    url: '/edutation/course/' + courseId,
    method: 'get'
  })
}

// 新增课程表
export function addCourseApi(data) {
  return request({
    url: '/edutation/course',
    method: 'post',
    data: data
  })
}

// 修改课程表
export function updateCourseApi(data) {
  return request({
    url: '/edutation/course',
    method: 'put',
    data: data
  })
}

// 删除课程表
export function delCourseApi(courseId) {
  return request({
    url: '/edutation/course/' + courseId,
    method: 'delete'
  })
}
